import { get } from "@/utils";
export interface MenuItemOld {
  authName: string;
  children: MenuItemOld[];
  id: number;
  path: string;
  order: number | null;
}
interface MenuData<T extends object = object> {
  data: T;
}
const getMenus = () => get<MenuItemOld[],MenuData<MenuItemOld[]>>("/menus");

export default getMenus;
